package cn.zstu.seckill.service;

import cn.zstu.seckill.bo.GoodsBo;
import cn.zstu.seckill.entity.User;
import cn.zstu.seckill.redis.RedisService;
import org.springframework.beans.factory.annotation.Autowired;

import java.awt.image.BufferedImage;
import java.util.List;


public interface SeckillGoodsService {

    List<GoodsBo> getSeckillGoodsList();

    GoodsBo getseckillGoodsBoByGoodsId(long goodsId);

    int reduceStock(long goodsId);

    //创建图片
    BufferedImage createVerifyCode(User user, long goodsId);

    //校验图片
    boolean checkVerifyCode(User user, long goodsId, int verifyCode);

}
